import Vue from 'vue'
import Router from 'vue-router'
import login from "../views/Login.vue";
import register from "../views/register.vue";
import shop from "../views/shop.vue";
import shoppingcart from "../views/shoppingcart.vue";
import admin from"../views/admin.vue";

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/shop',
      name: 'shop',
      component: shop
    },
    {
      path: '/shoppingcart',
      name: 'shoppingcart',
      component: shoppingcart
    },
    {
      path: '/admin',
      name: 'admin',
      component: admin
    },
  ]
})
